package wechat.start.wechatstart.enums;

/**
 * Created by WuJiXian on 2020/12/3 14:22
 */
public enum WeChatDevParams {
    APP_ID("appID", "wxe1df25dad9a4b6e3"), APP_SECRET("appsecret", "5cb17d576949c0d1ee865b2f1c8fbc35"),
    TOKEN("token", "hengantoken"), OPEN_ID("openid", "oNguIxGes6xBUkj8bQa2fYPAJ7s0"),
    TEMPLATE_ID("template_id", "kKDsYSDaj7-K0pEzFDs4yXsSb-wsBxDOVDqdtaG_y4A");


    /*APP_ID("appID", "wx8a0aa5309600a491"), APP_SECRET("appsecret", "aa828ee62b9099cc3caf41cb17d80f45"),
    TOKEN("token", "hengantoken");*/

    private String name;
    private String value;

    WeChatDevParams(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public static WeChatDevParams nameOf(String name) {
        for (WeChatDevParams value : values()) {
            if (value.name.equals(name))
                return value;
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
